import request from '@/utils/request'

// get 获得发现页栏目列表数据
export function getDiscovery(params) {
  return request({
    url: '/ops/discoveryColumn/list',
    method: 'get',
    params
  })
}

// post 新增发现页栏目列表数据
export function addDiscovery(data) {
  return request({
    url: '/ops/discoveryColumn/add',
    method: 'post',
    data
  })
}

// post 修改发现页栏目列表数据
export function updateDiscovery(data) {
  return request({
    url: '/ops/discoveryColumn/update',
    method: 'post',
    data
  })
}

// get 删除发现页栏目列表数据
export function deleteDiscovery(params) {
  return request({
    url: '/ops/discoveryColumn/delete',
    method: 'get',
    params: { id: params }
  })
}
